import request from '@/utils/request'


export default{
    businessList(page, size, searchMap) {
        return request({
            url: `/manage/merchant/merchant/merchantList?page=${page}&size=${size}&type=${searchMap.type}&status=${searchMap.status}&phone=${searchMap.phone}&domain=${searchMap.domain}&appid=${searchMap.appid}`,
            method: 'get',
        })
    },
    // 新建商家
    saveBusiness(data){
        return request({
            url: `/manage/merchant/merchant/save`,
            method: 'post',
            data:data
        })
    },
    // 禁用启用
    disabledBusiness(id,status){
        return request({
            url: `/manage/merchant/merchant/changeStatus?id=${id}&status=${status}`,
            method: 'post',
        })
    },
}
